
package session.stateless;

import entity.BatchRequired;
import entity.PurchaseItem;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import javax.ejb.Local;


@Local
public interface PurchaseOrderSessionBeanLocal {
    public Long addPurchaseOrder (String poNumber, Double totalAmount,Double cost,Double shippingCost, String status, Date poDate, String remark
            , Long bId, Long custId, Collection<PurchaseItem> purchaseItems, Double creditRate, Double firstPayment);
            
    public void updatePurchaseOrder (Long id, String status);
    
    public void updatePurchaseItemStatus (Long id,String status);
    public void addPurchaseItemBatch (Long id, BatchRequired batch);
    public ArrayList <PurchaseItem> sortPurchaseItems (ArrayList <PurchaseItem> purchaseItems);
}
